<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>
<%
pageContext.setAttribute("crlf", "\r\n");
pageContext.setAttribute("lf", "\n");
pageContext.setAttribute("cr", "\r");
%>
<script type="text/javascript">

$(document).ready(function(){
	
});

//다음단계
function sendData(){
	if($("#agree_ref:checked").length<1){
		alert("이용안내 및 환불규정에 동의하셔야 예약이 가능합니다.");
		
		return false;
	}
	$("#frmdata").submit();
}
</script>

<form action="./pere203Q.do" method="post" name="form1" id="frmdata">
<div style="display: none;">

p_id<input type="text" name="p_id" value="${paramMap.p_id }">
reservation_dt<input type="text" name="reservation_dt" value="${paramMap.reservation_dt }">

<c:if test="${paramMap.pr_no_cnts !=null && fn:length(paramMap.pr_no_cnts)>0 }">
	<c:forEach var="map1" items="${paramMap.pr_no_cnts}" varStatus="status">
<br/>
pr_no_cnts<input type="text" name="pr_no_cnts" value="${status.index }">
pr_nos<input type="text" name="pr_nos" value="${paramMap.pr_nos[map1] }">

man_cnts<input type="text" name="man_cnts" value="${paramMap.man_cnts[map1] }">
chi_cnts<input type="text" name="chi_cnts" value="${paramMap.chi_cnts[map1] }">
rsv_days<input type="text" name="rsv_days" value="${paramMap.rsv_days[map1] }">

	</c:forEach>
</c:if>

<c:if test="${paramMap.as_no_idxs !=null && fn:length(paramMap.as_no_idxs)>0 }">
	<c:forEach var="map1" items="${paramMap.as_no_idxs}" varStatus="status">
<br/>as_no_idxs<input type="text" name="as_no_idxs" value="${status.index }">
as_nos<input type="text" name="as_nos" value="${paramMap.as_nos[map1] }">
use_cnts<input type="text" name="use_cnts" value="${paramMap.use_cnts[map1] }">
req_msgs<input type="text" name="req_msgs" value="${paramMap.req_msgs[map1] }">
	</c:forEach>
</c:if>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="10">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td background="/usr/images/mypage_m01bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="40%"><img src="/usr/images/res_m01.gif" width="262" height="22"></td>
                <td width="60%" align="right"><%@ include file="/WEB-INF/jsp/usr/pe/re/pere_top.jsp"%></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td height="20" background="/usr/images/res_mbg.gif">&nbsp;</td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="50%">&nbsp;</td>
          <td width="50%" align="right" style="padding-right: 30px;"><table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="70" align="left"><img src="/usr/images/reservation_icon_home.gif" width="47" height="31"></td>
              <td><IMG SRC="${pensionInfo.p_logo }" BORDER="0" height="30"></td>
            </tr>
          </table></td>
        </tr>
      </table>
<%@ include file="/WEB-INF/jsp/usr/pe/re/pere202-3_top.jsp"%>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td><span class="blueb">※ 이용안내</span></td>
        </tr>
        <tr>
          <td><table width="100%" border="0" cellspacing="4" cellpadding="5" bgcolor="#edecec">
              <tr>
                <td align="center" bgcolor="#ffffff"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="left" class="grayb" style="padding-top: 15px; padding-bottom: 15px; padding-left: 15px; padding-right: 15px;">
                      	${fn:replace(pensionInfo.intro, lf, "<br/>")}
                      </td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="1" cellpadding="8" bgcolor="#fdb936">
                    <tr>
                      <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="55"><img src="/usr/images/res_char.gif" width="47" height="57"></td>
                            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td align="left">-<strong> 환불규정표 (숙박일기준 환불%)</strong></td>
                                </tr>
                              </table>
                              <table width="100%" border="0" cellspacing="1" cellpadding="5" bgcolor="#DDDDDD">
                                <tr align="center" bgcolor="#f5f5f5">
                                  <td>숙박당일</td>
                                  <td>1일전</td>
                                  <td>2일전</td>
                                  <td>3일전</td>
                                  <td>4일전</td>
                                  <td>5일전</td>
                                  <td>6일전</td>
                                  <td>7일전</td>
                                  <td>기본</td>
                                </tr>
                                <tr align="center" bgcolor="#FFFFFF">
                                  <td>${refundList.day1 }%</td>
                                  <td>${refundList.day_a_1 }%</td>
                                  <td>${refundList.day_a_2 }%</td>
                                  <td>${refundList.day_a_3 }%</td>
                                  <td>${refundList.day_a_4 }%</td>
                                  <td>${refundList.day_a_5 }%</td>
                                  <td>${refundList.day_a_6 }%</td>
                                  <td>${refundList.day_a_7 }%</td>
                                  <td>${refundList.general }%</td>
                                </tr>
                              </table></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--                     <tr> -->
<!--                       <td>&nbsp;</td> -->
<!--                     </tr> -->
<!--                     <tr> -->
<!--                       <td align="left" class="grayb"><ul> -->
<%--                           <li>무통장 입금시 ${refundList.wait_time }시간이내로 입금이 안되면 다음예약자를 위해 자동 취소 됩니다</li> --%>
<!--                           <li>예약이 완료되면 문자 메시지 및 확인 메일을 발송해드립니다</li> -->
<!--                         </ul></td> -->
<!--                     </tr> -->
                    <tr>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td><input type="checkbox" name="agree_ref" id="agree_ref"></td>
                            <td class="paddtop4"> <label for="agree_ref">상기의 이용안내 및 환불규정에 동의합니다</label></td>
                            <td class="redb" style="padding-top: 4px; padding-left: 20px;">※반드시 읽어 보시고 예약을 진행해주세요.</td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="center"><table width="100" border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td><a href="javascript:history.go(-1)"><img src="/camping/img/reservation_bt02.jpg" width="114" height="36"></a></td>
                <td>
                	<a href="#" onclick="sendData();"><img src="/usr/images/res_btn_next.gif" width="114" height="36"></a>
                </td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td align="center">&nbsp;</td>
        </tr>
        <tr>
          <td height="3" bgcolor="#86ad29"></td>
        </tr>
        <tr>
          <td style="padding-top: 2px;"><%@ include file="/WEB-INF/jsp/usr/pe/re/footer.jsp"%></td>
        </tr>
      </table></td>
  </tr>
</table>

</form>
